package com.zhi.service;

import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.zhi.entity.Dictionary;

public interface DictionaryService {
	
	public List<Dictionary> getEntityList();
	
	public Page<Dictionary> getEntityList(Pageable pageable);
	
	public List<Dictionary> getDictsByCodeType(String codeType);
	
	public Dictionary getOne(Integer id);

	public List<Dictionary> findByCodeTypeAndCode(String codeType,String code);
	
	public void save(Dictionary dictionary);
	
	public void edit(Dictionary dictionary);
	
	public void delete(Integer id);
	
	public Integer count();
	
}
